/**
 * Author:刘敏
 * Date:2022-09-15
 * Description:应用公共处理方法
 */
import '@/assets/style.less'
import App from './App.vue'
import createRouter from "./router"

import { createSSRApp } from 'vue'

export default function () {

  if (import.meta.env.SSR) {
    // ... 仅在服务端执行的逻辑
  }

  const app = createSSRApp(App)

  const router = createRouter()
  app.use(router)

  return { app, router }
}